package com.qww;

import java.util.Random;

public class Exec03 {

    public static void main(String[] args) {
        Random r = new Random();
        int before = r.nextInt(100);
        int current = r.nextInt(100);
        while (true) {
            for (int i = 0; i < 25; i++) {
                System.out.print("before=" + before + ", current=" + current + ": ");
                if (before < current) System.out.println("大于");
                else if (before > current) System.out.println("小于");
                else System.out.println("等于");
                before = current;
                current = r.nextInt(100);
            }
        }
    }
}